import 'package:flutter/material.dart';

import '../shared/shared.dart';

class BlindButton extends StatelessWidget {
  const BlindButton(
      {Key? key,
      this.onTap,
      required this.width,
      required this.height,
      required this.text,
      required this.fontSize,
      required this.color,
      this.borderWidth = 3.0,
      this.textColor = ColorConstants.themeColor})
      : super(key: key);

  final GestureTapCallback? onTap;
  final double width;
  final double height;
  final String text;
  final double fontSize;
  final Color color;
  final double borderWidth;

  final Color textColor;

  @override
  Widget build(BuildContext context) {
    return InkWell(
        onTap: onTap,
        child: Container(
            alignment: Alignment.center,
            width: width,
            height: height,
            decoration: BoxDecoration(
                color: color,
                border: Border.all(
                    color: ColorConstants.themeColor, width: borderWidth),
                borderRadius: const BorderRadius.all(Radius.circular(26))),
            child: Text(text,
                style: TextStyle(color: textColor, fontSize: fontSize))));
  }
}
